Optimal. Leaf size=105 \[ \frac{2 b}{d \left (a^2-b^2\right ) \sqrt{a+b \sin (c+d x)}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sin (c+d x)}}{\sqrt{a-b}}\right )}{d (a-b)^{3/2}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sin (c+d x)}}{\sqrt{a+b}}\right )}{d (a+b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.157626, antiderivative size = 105, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {2668, 710, 827, 1166, 206} \[ \frac{2 b}{d \left (a^2-b^2\right ) \sqrt{a+b \sin (c+d x)}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sin (c+d x)}}{\sqrt{a-b}}\right )}{d (a-b)^{3/2}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sin (c+d x)}}{\sqrt{a+b}}\right )}{d (a+b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2668
Rule 710
Rule 827
Rule 1166
Rule 206
Rubi steps
\begin{align*} \int \frac{\sec (c+d x)}{(a+b \sin (c+d x))^{3/2}} \, dx &=\frac{b \operatorname{Subst}\left (\int \frac{1}{(a+x)^{3/2} \left (b^2-x^2\right )} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac{2 b}{\left (a^2-b^2\right ) d \sqrt{a+b \sin (c+d x)}}+\frac{b \operatorname{Subst}\left (\int \frac{a-x}{\sqrt{a+x} \left (b^2-x^2\right )} \, dx,x,b \sin (c+d x)\right )}{\left (a^2-b^2\right ) d}\\ &=\frac{2 b}{\left (a^2-b^2\right ) d \sqrt{a+b \sin (c+d x)}}+\frac{(2 b) \operatorname{Subst}\left (\int \frac{2 a-x^2}{-a^2+b^2+2 a x^2-x^4} \, dx,x,\sqrt{a+b \sin (c+d x)}\right )}{\left (a^2-b^2\right ) d}\\ &=\frac{2 b}{\left (a^2-b^2\right ) d \sqrt{a+b \sin (c+d x)}}-\frac{\operatorname{Subst}\left (\int \frac{1}{a-b-x^2} \, dx,x,\sqrt{a+b \sin (c+d x)}\right )}{(a-b) d}+\frac{\operatorname{Subst}\left (\int \frac{1}{a+b-x^2} \, dx,x,\sqrt{a+b \sin (c+d x)}\right )}{(a+b) d}\\ &=-\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sin (c+d x)}}{\sqrt{a-b}}\right )}{(a-b)^{3/2} d}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sin (c+d x)}}{\sqrt{a+b}}\right )}{(a+b)^{3/2} d}+\frac{2 b}{\left (a^2-b^2\right ) d \sqrt{a+b \sin (c+d x)}}\\ \end{align*}
Mathematica [C] time = 0.0792309, size = 91, normalized size = 0.87 \[ \frac{(a+b) \, _2F_1\left (-\frac{1}{2},1;\frac{1}{2};\frac{a+b \sin (c+d x)}{a-b}\right )+(b-a) \, _2F_1\left (-\frac{1}{2},1;\frac{1}{2};\frac{a+b \sin (c+d x)}{a+b}\right )}{d (a-b) (a+b) \sqrt{a+b \sin (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.442, size = 99, normalized size = 0.9 \begin{align*} 2\,{\frac{b}{d \left ( a+b \right ) \left ( a-b \right ) \sqrt{a+b\sin \left ( dx+c \right ) }}}+{\frac{1}{d \left ( a-b \right ) }\arctan \left ({\sqrt{a+b\sin \left ( dx+c \right ) }{\frac{1}{\sqrt{-a+b}}}} \right ){\frac{1}{\sqrt{-a+b}}}}+{\frac{1}{d}{\it Artanh} \left ({\sqrt{a+b\sin \left ( dx+c \right ) }{\frac{1}{\sqrt{a+b}}}} \right ) \left ( a+b \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\sqrt{b \sin \left (d x + c\right ) + a} \sec \left (d x + c\right )}{b^{2} \cos \left (d x + c\right )^{2} - 2 \, a b \sin \left (d x + c\right ) - a^{2} - b^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec{\left (c + d x \right )}}{\left (a + b \sin{\left (c + d x \right )}\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08793, size = 161, normalized size = 1.53 \begin{align*} b{\left (\frac{\arctan \left (\frac{\sqrt{b \sin \left (d x + c\right ) + a}}{\sqrt{-a + b}}\right )}{{\left (a b d - b^{2} d\right )} \sqrt{-a + b}} - \frac{\arctan \left (\frac{\sqrt{b \sin \left (d x + c\right ) + a}}{\sqrt{-a - b}}\right )}{{\left (a b d + b^{2} d\right )} \sqrt{-a - b}} + \frac{2}{{\left (a^{2} d - b^{2} d\right )} \sqrt{b \sin \left (d x + c\right ) + a}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]